/**
 * 配置浏览器本地存储的方式，可直接存储对象数组。
 */

import WebStorageCache from 'web-storage-cache';

export const useLocalStorage = () => {
  return new WebStorageCache({
    storage: 'localStorage'
  });
};
export const useSessionStorage = () => {
  return new WebStorageCache({
    storage: 'sessionStorage'
  });
};
